/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *
 * @author: jin Chen 
 * @date: Jun 14, 2003
 * @version: $VERSION$
 */
package edu.psu.geovista.app.plot.axis;

import edu.psu.geovista.app.plot.ruler.Ruler;


public class XAxis extends BasicAxis{
    edu.psu.geovista.app.plot.ruler.Ruler ruler;

    protected  int numOfYAxis;// 
    //protected  MultiYPlot plot;

    public XAxis() {
        super(Ruler.HORIZONTAL);
    }

    public XAxis(int activeSize,Range dataRange, String axisName) {
        super(Ruler.HORIZONTAL, dataRange, activeSize, axisName);

    }

    public int getXByValue(float realx){
        int x=Math.round(getGraphicValueOf(realx));
        return x;
    }

    public int getNumOfYAxis() {
        return numOfYAxis;
    }

    

 /*   public void setNumOfYAxis(int numOfYAxis) {
        this.numOfYAxis = numOfYAxis;
    }*/


}
